package com.rocbrid.exception;

import lombok.Getter;

public enum BizExceptionEnum {
    ORDER_CLOSED(1001,"订单已经关闭"),
    EMPLOYEENO_ID(101,"修改员工信息不存在"),
    EMPLOYEENO_SELECT(102,"员工信息不存在"),
    USER_REGISTER_MRROR(100,"注册失败,用户名已经存在");
    //业务异常
    @Getter
    private Integer code;
    //异常信息
    @Getter
    private String msg;

    BizExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
